import instance from '@/utils/request.js'

function getTableData(params) {
    return instance({
        url: '/subject/list',
        params
    })
}

function delSubject(data) {
    return instance({
        url: '/subject/remove',
        method: 'post',
        data
    })
}

function updateStatus(data) {
    return instance({
        url: '/subject/status',
        method: 'post',
        data
    })
}

function addSub(data) {
    return instance({
        url: '/subject/add',
        method: 'post',
        data
    })
}

function editSub(data) {
    return instance({
        url: '/subject/edit',
        method: 'post',
        data
    })
}

export {
    getTableData,
    delSubject,
    updateStatus,
    addSub,
    editSub
}